package com.example.dao;

import com.example.domain.Course;
import org.apache.ibatis.annotations.Insert;

public interface CourseDao
{
    @Insert("INSERT INTO users.course " +
            "(courseId, courseName, courseDescription, credits, instructor, schedule, maxStudents, enrolledStudents, classroom, department, prerequisites) " +
            "VALUES " +
            "(#{courseId}, #{courseName}, #{courseDescription}, #{credits}, #{instructor}, #{schedule}, #{maxStudents}, #{enrolledStudents}, #{classroom}, #{department}, #{prerequisites})")
    int insertCourse(Course course);
}
